<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .yunxing {
            clear: both;
            text-align: center;
            border: 1px solid #0099FF;
            border-radius: 6px;
            background: #FFFFFF;
            line-height: 20px;
            padding: 6px 5px 3px;
            color: rgb(12, 211, 218);
        }
    </style>
</head>

<body>
    <div class="yunxing">
        <span id="span_dt_dt" style="border:0px solid black;background-color:#FFFFFF"></span><br>
        <script language="javascript">
            if (localStorage.pagecount) {
                localStorage.pagecount = Number(localStorage.pagecount) + 1
            } else {
                localStorage.pagecount = 1
            }
            document.write(`这是你第${localStorage.pagecount}次来访问了我的网站！`);

            function show_date_time() {
                window.setTimeout("show_date_time()", 1000);
                BirthDay = new Date("12-20-2021");
                today = new Date();
                timeold = (today.getTime() - BirthDay.getTime());
                sectimeold = timeold / 1000
                secondsold = Math.floor(sectimeold);
                msPerDay = 24 * 60 * 60 * 1000
                e_daysold = timeold / msPerDay
                daysold = Math.floor(e_daysold);
                e_hrsold = (daysold - e_daysold) * -24;
                hrsold = Math.floor(e_hrsold);
                e_minsold = (hrsold - e_hrsold) * -60;
                minsold = Math.floor((hrsold - e_hrsold) * -60);
                seconds = Math.floor((minsold - e_minsold) * -60);
                span_dt_dt.innerHTML = '小罗的网站已存活：' + daysold + "天" + hrsold + "小时" + minsold + "分" + seconds + "秒";
            }
            show_date_time();
        </script>
    </div>
</body>

</html>